package Si.Assign1.Model;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.Basic;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.JoinTable;
import javax.persistence.ManyToMany;
import javax.persistence.ManyToOne;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;


public class Customer 
{
	public Customer(){}

	/*
	 * Properties
	 */
	
	/*
	 * Set and get id
	 */
	public int getId()
	{   return id;   }
	public void setId(int id)
	{   this.id = id;  }

	/*
	 * Set and get first_name
	 */
	public String getFirstName()
	{   return firstName;   }
	public void setFirstName(String firstName)
	{   this.firstName = firstName;  }
	
	/*
	 * Set and get last_name
	 */
	public String getLastName()
	{	return lastName;  }
	public void setLastName(String lastName)
	{   this.lastName = lastName; }
	
	/*
	 * Set and get public_id
	 */
	public String getPublicId()
	{	return publicId;   }
	public void setPublicId(String publicId)
	{   this.publicId = publicId;  }
	
	/*
	 * Set and get email_address
	 */
	public String getEmailAddress()
	{	return emailAddress;  }
	public void setEmail_address(String emailAddress)
	{   this.emailAddress = emailAddress;  }
	
	/*
	 * Set and get password
	 */
	public String getPassword()
	{   return password;   }
	public void setPassword(String password)
	{   this.password = password;  }
	
	/*
	 * Set and get billing_address
	 */
	public int getBilling_address()
	{	return billing_address;   }
	public void setBilling_address(int billing_address)
	{   this.billing_address = billing_address; }
	
	/*
	 * Set and get shipping_address
	 */
	public int getShippingAddress()
	{   return shippingAddress;   }
	public void setShipping_address(int shippingAddress)
	{   this.shippingAddress = shippingAddress;  }
	
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Basic(optional=false)
	@Column(name="id", nullable=false)
	private int id;
	@Column(name="first_name", length = 255, nullable=false)
	private String firstName;
	@Column(name="last_name", length = 255, nullable=false)
	private String lastName;
	@Column(name="public_id", length = 16, nullable=false)
	private String publicId;
	@Column(name="email_address", length = 1748, nullable=false)
	private String emailAddress;
	@Column(name="password", length = 1748, nullable=false)
	private String password;
	@Column(name="billing_address", nullable=true)
	private int billing_address;
	@Column(name="shipping_address", nullable=false)
	private int shippingAddress;

}
